package com.flash.GlobalManagement.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface DbutilMapper {
    @Select("select max(${tableId}) from ${table} where ${tableTime} = #{time}")
    public String getTable(String tableId, String table, String tableTime, String time);

    @Select("select max(${tableId}) from ${table}")
    public String getTable2(String tableId, String table);
    @Delete("delete from ${table} where fundId = ${fundId} and ${tableTime} = ${time} and ${tableId} = ${tableName}")
    public int delete(String table,String fundId,String tableTime,String time,String tableId,String tableName);

}
